package right_content

import (
	"fyne.io/fyne/v2"
	"fyne.io/fyne/v2/container"
	"fyne.io/fyne/v2/layout"
	"fyne.io/fyne/v2/widget"
)

type MybaitisPlusBaseCode struct {
	root fyne.CanvasObject
}

func (o *MybaitisPlusBaseCode) LadeContent() {
	hello := widget.NewLabel("其他")
	hello1 := widget.NewLabel("2222")

	row1 := container.New(layout.NewHBoxLayout(), layout.NewSpacer(), hello, hello1, layout.NewSpacer())
	row2 := container.New(layout.NewHBoxLayout(), layout.NewSpacer(), hello, hello1, layout.NewSpacer())

	o.root = container.New(layout.NewVBoxLayout(), row1, row2)
}

func (o *MybaitisPlusBaseCode) GetContent() fyne.CanvasObject {
	return o.root
}
